package os_env

import (
	logger "gitee.com/zaper/private-logger"
	"gitee.com/zaper/service-center-client/constant"
	"os"
)

const (
	ServiceNameKey   = "serviceName"
	ServiceNameValue = "route-service"
	ServiceIdKey     = "serviceId"
)

func InitializeEnv() {
	if err := os.Setenv(constant.DnsKey, constant.DnsValue); err != nil {
		logger.Errorf("set AppNameSpaceKey env fail, err is %s", err)
	}
	if err := os.Setenv(ServiceNameKey, ServiceNameValue); err != nil {
		logger.Errorf("set ServiceNameKey env fail, err is %s", err)
	}
	if err := os.Setenv(ServiceIdKey, "route-service-0"); err != nil {
		logger.Errorf("set ServiceNameKey env fail, err is %s", err)
	}
}
